#include "DonorList.h"

#include "iostream"
#include "algorithm"
using namespace std;

DonorList::DonorList(const DonorList &anotherDonorList)
{
    (*this).donorList = new set<DonorType>;
    (*this).donorList = anotherDonorList.donorList;
}

DonorList& DonorList::operator=(const DonorList &anotherDonorList)
{
    if (this == &anotherDonorList)
    {
        cerr << "The both objects are same." << endl;
    }
    else
    {
        (*this).donorList = anotherDonorList.donorList;
    }
    return *this;
}